home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
TeX 1995 July
/
TeX CD-ROM July 1995 (Disc 1)(Walnut Creek)(1995).ISO
/
systems
/
web2c
/
web2c.sunmake.help
< prev
next >
Wrap
INI File
|
1994-02-04
|
2KB
|
49 lines
[7 Feb 1994]
Sun's Make, and perhaps others, fail to understand :: rules
when VPATH is set. The fix is to comment it out (ugh).
From jp107@amtp.cam.ac.uk Sun Feb 6 00:18:20 1994
Date: Sun, 6 Feb 94 05:18 GMT
To: unix-support@ucs.cam.ac.uk
Cc: kb@cs.umb.edu
Subject: .../kpathsea/Makefile.in patch
From: Jon Peatfield <J.S.Peatfield@amtp.cam.ac.uk>
Hmm things just got interesting w.r.t my Make bug. I've worked out
what it objects to in the makefiles. It will cope with target:: rules
PROVIDED you don't set VPATH to anything (or it is set to ''.)
i.e. the following Makefile works:
--cut-here--
# uncomment the following line and target:: rules break.
# VPATH=.
test::
echo test rule1
test::
echo test rule2
--cut-here
but fails if you uncomment the VPATH line. The Man page doesn't
mention VPATH at all, so it SHOULD just be treated like any other
variable (IMHO), but it isn't.
I've just tried this Makefile on your Solaris-2 machine (ursa) with
/usr/ccs/bin/make and I get the same results. i.e It still isn't
fixed in Solaris-2 (for once ;-)
This will affect anyone trying to "make clean" after building
web2c-6.* on any Sun. It doesn't get caught by Imake Makefiles since
they don't set VPATH.
KB: is it possible to put a warning in the web2c stuff warning about
the bug in Sun's Make? In fact is VPATH used at all?
-- Jon
Jon Peatfield, Computer Officer, the DAMTP, University of Cambridge
Telephone: (+44 223) 3-37852 Mail: J.S.Peatfield@amtp.cam.ac.uk
Talk to your users about PP, before someone else does! PP: Just say NO.